ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Random Everything

by kimpettersen ALL

Plugin for sublime text to generate random, ints, floats, strings and words

Details

  • 2017.10.19.10.49.55
  • github.​com
  • github.​com
  • 7 years ago
  • 3 hours ago
  • 11 years ago

Installs

  • Total 25K
  • Win 13K
  • Mac 7K
  • Linux 5K
Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20
Windows 1 1 3 0 0 0 0 0 0 0 0 0 1 2 0 0 2 0 0 1 0 0 0 1 1 0 0 0 1 2 0 0 1 0 1 0 1 0 0 0 1 3 4 20 0 1
Mac 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 2 2 0 0 0
Linux 1 1 0 0 0 0 2 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 1 1 0 0 0 0 3 0 0 1 1

Readme

Source
raw.​githubusercontent.​com

random-sublime-text-plugin

Plugin for sublime text to generate random, ints, floats, strings and words.

It works in Sublime Text 2 and ST3

Example

Example

Usage

This plugin can only be accessed through the Cmd/Ctrl+Shift+P command.

Type random and you get the following choices:

  • Random:Int - requires a range from a-b separated with a: -. Default: 1-100
  • Random:Float - requires a range from a-b separated with a: -. Default: 1-100
  • Random:Letters - generatates a random string of lower and upper -case letters with a length between 3 and 17
  • Random:Letters and numbers - generatates a random string of lower and upper -case letters and numbers with a length between 3 and 17
  • Random:Country - picks a random country
  • Random:Word - picks a random word from /usr/share/dict/words
  • Random:Text - picks 24 random words from /usr/share/dict/words
  • Random:Date - picks a random ISO-8601 Date
  • Random:First name - picks a random first name from the built-in datafile
  • Random:Last name - picks a random last name from the built-in datafile
  • Random:Full name - picks a random full name from the built-in datafiles
  • Random:E-mail - picks a random E-mail address
  • Random:Url - generates a URL using random words from /usr/share/dict/words
  • Random:Hex Color - generates a random hex color formatted “#abc123”
  • Random:IPv4 Address - generates a random ipv4 ip address
  • Random:IPV6 Address - generates a random ivp6 ip address

Overridable Settings

Random: E-Mail

  • random_email_top_level_domain_override - Allows overriding available email TLDs e.g. ["com","org"]. Defaults are ["com", "net", "co.uk", "org", "edu"]
  • random_email_main_domain_override - Allows overriding of available email main domains e.g. ["gmail","yahoo", "hotmail"]. If not specified, a random string will be used.

  • max_year and min_year defines a date range

Complete Settings Example

{
    "random_email_top_level_domain_override": ["com", "net", "co.uk", "org", "edu"],
    "max_year": 2000,
    "min_year": 1999
}